#include "Aircraft.h"


Aircraft::Aircraft()
{
    // dummy constructor
}

Aircraft::Aircraft(int uID, char name[20], int iks, int igrek, int fuel, int st)
{
	uniqueID = uID;
	//aircraftName = name; 
	strcpy(aircraftName,name);
	x = iks;
	y = igrek;
	actualFuel = fuel;
	state = st;
}

Aircraft::~Aircraft()
{

}

void Aircraft::getInfo()
{
	std::cout << "Aircraft: " << uniqueID << "name: " << aircraftName <<" position[X,Y]: " << x << "," << y << " Fuel: " << actualFuel << "State: " << state << std::endl;  
}


int Aircraft::getUniqueID()
{
    return uniqueID;
}

char *Aircraft::getAircraftName()
{
    return aircraftName;
}

int Aircraft::getX()
{
    return x;
}

int Aircraft::getY()
{
    return y;
}


int Aircraft::getActualFuel()
{
	return actualFuel;
}

int Aircraft::getState()
{
    return state;
}

void Aircraft::setX(int xx)
{
    x = xx;
}

void Aircraft::setY(int yy)
{
    y = yy;
}

void Aircraft::setActualFuel(int af)
{
    actualFuel = af;
}

void Aircraft::setState(int s)
{
    state = s;
}